#pragma once
#include <string>

static const char DB_REDIS_FLUSH_STATE_STR[] = "dbname:%s:group:%u:dbflush:%u:state";
static const char DB_REDIS_FLUSH_LIST_STR[]	= "dbname:%s:group:%u:db_cachelist:%u:state";

static const char DB_REDIS_CHARACTER_LIST_STR[] = "group:%u:channle:%s:userhash:%u:charlist";

static const unsigned USER_HASH_ID_MOD = 49999;
static const unsigned DB_REDIS_EXPIRE_TIME = 3600;
static const unsigned DB_REDIS_OFFLINE_CHARACTER_DATA_EXPIRE_TIME = 43200;

unsigned CalcUserHashID(const std::string& str);
